package com.kingzoder.food.model.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author ZoderKing
 */
@Schema(name = "分类VO实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CategoryVO implements Serializable {
    @Schema(name = "分类ID")
    private Long id;

    @Schema(name = "分类名称")
    private String name;

    @Schema(name = "父分类ID，0表示顶级分类")
    private Long parentId;

    @Schema(name = "排序序号，用于展示排序")
    private Integer sortOrder;
}
